/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.annuaireComp.sessions;

import fr.annuaireComp.entities.Competence;
import fr.annuaireComp.entities.DomaineCompetence;
import fr.annuaireComp.entities.SavoirCompetence;
import javax.ejb.Remote;
import java.util.List;
import java.util.Map;

/**
 *
 * @author MiniK
 */
@Remote
public interface CompetencesManager {

    void addCompetence(String libelle, Integer savoir, Integer domaine, Integer idCompetenceMere);

    void editCompetence(Competence competence);

    List<Competence> listCompetences();

    Competence getCompetence(int competenceId);

    void addSavoir(String libelle);

    void addDomaine(String libelle);

    List<Competence> listCompetencesByDomaineLibelle(String domaineLibelle);

    List<Competence> listCompetencesBySavoirLibelle(String domaineLibelle);

    List<Competence> listCompetencesBy(Map<String, Object> criteria);

    List<DomaineCompetence> listDomaines();

    List<SavoirCompetence> listSavoirs();

    void deleteCompetence(int compId);
}
